//
//  StockAppHelper.h
//  Stock
//
//  Created by blacksun on 11-6-23.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CommonUtil.h"
#import "StockChildSegmentItemController.h"
#import "SQLiteInstanceManager.h"

@interface StockAppHelper : NSObject<UIAlertViewDelegate> {
    
}

-(void)createTables;

-(NSArray *)buildStockChildSegmentItemImageWithTitles:(NSArray *)theTitles;
-(UIView *)getTableFooterView;
-(UIView *)setupLoadingViewWithFrame:(CGRect)frame;
-(UIView *)setupLoadMoreViewWithTarget:(id)target andAction:(SEL)action;

-(UIView *)setupPopupViewWithMessage:(NSString *)message;
+(UIView *)titleViewForNavigationItemWithString:(NSString*)title;

-(void)showAlertViewWithMessage:(NSString *)message;
-(void)showAlertViewWithMessage:(NSString *)message andDelegate:(id)delegate;

//是否还可以添加个股，如果不行，会弹出一个Alert框
-(BOOL)canAddFavoriteStock;

-(void)setupAddFavoriteNotify;

+(id)shareInstance;
@end
